<?php e($javascript->codeBlock('$(document).ready(function() {$("#ConfigAddForm").ajaxForm(function() {$(".content").load("/admin/configs/edit");});});'));?>
<div id="options">
	<?php e($form->create('Config', array('action'=>'edit')));?>
		<fieldset id="options-edit">
			<legend>Edit <?php e($sitename);?>'s options</legend>
		<?php e($form->input('sitename', array('value'=>$sitename)));?>
		<?php e($form->input('sitedesc', array('value'=>$sitedesc)));?>
		<?php e($form->input('siteurl', array('value'=>$siteurl)));?>
		<?php e($form->input('enable_comments', array('type'=>'select', 'options'=>array(1=>'Yes',0=>'No'), 'selected'=>$enable_comments)));?>
		<?php e($form->input('enable_captcha', array('type'=>'select', 'options'=>array(1=>'Yes',0=>'No'), 'selected'=>$enable_captcha)));?>
		</fieldset>
		
		<?php e($form->submit('Update Options'));?>
	<?php e($form->end());?>
</div>